function [imCell,T,pathCell] = io(s)
% nacte vstupni soubor a na jeho zaklade obrazky do cellArray 
% a pozadovanou tridu do T - pozadovany vektor vystupu T je matice 
% p x pocetVzoru
% pathCell - cesty k vstupnim obrazkum (bunkove pole)
fid = fopen(s, 'r');						
D = textscan(fid,'%s','delimiter','\n','whitespace','');
fid = fclose(fid);

n = size(D{1},1);

tt = zeros(1,n/2);
for i=1:2:n
    pathCell{(i+1)/2} = char(D{1}(i));
    imCell{(i+1)/2} = im2double(imread(char(D{1}(i))));
    tt((i+1)/2) = str2num(char(D{1}(i+1)));
end
m = max(tt);
T = zeros(m,n/2);
for i =1:n/2
    T(tt(i),i) =1;
end;
